import UnityPy

env = UnityPy.load("data/data.unity3d")  # 未处理的 data.unity3d 文件
font_path_id_map = {}
font_list = [
    "FOT-TsukuMinPro-M",
    "YGO_Card_NA",
    "FOT-RODINNTLGPRO-B",
    "YGO_Card_JP",
    "FOT-KafuTechnoStd-H",
    "FOT-RodinPro-DB",
]
for obj in env.objects:
    if obj.type.name == "Font":
        data = obj.read()
        if data.name not in font_list: continue
        font_path_id_map[data.name] = {
            "m_Texture": data.m_Texture.path_id,
            "m_DefaultMaterial": data.m_DefaultMaterial.path_id,
        }
# print(font_path_id_map)
for name, value in font_path_id_map.items():
  print(name, value)